//
//  ECCompanyModel.m
//  ECERP.CRM
//
//  Created by Mac on 2018/10/19.
//  Copyright © 2018年 Mac. All rights reserved.
//

#import "ECCompanyModel.h"

@implementation ECCompanyModel

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
/**
 *  对特殊字段进行处理
 *
 *  @param value value description
 *  @param key   key description
 */
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        [self setValue:value forKey:@"Id"];
    }
    if ([key isEqualToString:@"description"]) {
        [self setValue:value forKey:@"Description"];
    }
}

@end
